$(document).ready(function(){
	//加载下拉框
	getorgInfo();
	getCertificateList(id);
	getAssumeProjectList();
	getInternalAuditList();
	getCommitteeList(1,1);
	getCommitteeList(1,2);
	getCommitteeList(2,1);
	getCommitteeList(2,2);
});

function findListByDate(){
	$.ajaxq("findListByDate", {
		async : false,
		url : 'stem-cells!findListByDate.action',
		type : 'post',
		dataType : 'json',
		success : function(data) {
			Interceptor(data);
			if(null!=data){
				var rContent = '';
				$(data).each(function(i) {
					rContent += ' <li><a href="stem_cells_find.jsp?id=' + data[i].ID + '">'+ data[i].name + '</a></li>';
				});
				$("#zxbajg").html(rContent);
			}
		},
		error : function() {
		}
	});
}

function getorgInfo() {
	$.ajax({
   		async:false,
		url:'/admin/org!findEntityById.action',
		type:'POST',
		data: {
			"id":id
		},
		dataType:'json',
		cache: false,
		success:function(data){
			Interceptor(data);
			if(data!=null){
				var dataObj=data.org;
				var isShow=data.detailShow;
				var dataorgRecords=data.orgRecords;
				var organizationRecordsCertificate=data.organizationRecordsCertificate;
				$("#name").html(dataObj.name);
				$("#organType").html(dataObj.organType);
				$("#organLevel").html(dataObj.organLevel);
				$("#organCode").html(dataObj.organCode);
				$("#address").html(dataObj.address);
				$("#postCode").html(dataObj.postCode);
				$("#contactUser").html(dataObj.contactUser);
				$("#contactPhone").html(dataObj.contactPhone);
				$("#contactMobile").html(dataObj.contactMobile);
				$("#contactEmail").html(dataObj.contactEmail);
				$("#province").html(dataObj.province.shortName);
				$("#responsiblePerson").html(dataObj.responsiblePerson);
				
				$("#regNumber").html("机构备案编号： " + dataorgRecords.regNumber);
				
				//2016-06-07 15:56:59
				$("#institutionEthicsCommitteeName").html(dataObj.institutionEthicsCommitteeName);
				$("#institutionEthicsCommitteePersonnel").html(dataObj.institutionEthicsCommitteePersonnel);
				if(dataObj.institutionEthicsCommitteeConstitution==1) {
					$("#institutionEthicsCommitteeConstitution").html("是");
				}else if(dataObj.institutionEthicsCommitteeConstitution==1) {
					$("#institutionEthicsCommitteeConstitution").html("否");
				}
				if(dataObj.institutionEthicsCommitteeProgram==1) {
					$("#institutionEthicsCommitteeProgram").html("是");
				}else if(dataObj.institutionEthicsCommitteeProgram==1) {
					$("#institutionEthicsCommitteeProgram").html("否");
				}
				
				// extendInfo
				if(isShow=='true') {
					$("#extendInfo").show();
				}else if(isShow=='false') {
					$("#extendInfo").hide();
				}
				
				// 机构备案
				if(dataorgRecords!=""){
					sjreson=dataorgRecords.reason;
					baocunIdStr=dataorgRecords.status;
					// 机构备案
					$("#medicalInstitutionsExequaturPdf").val(dataorgRecords.medicalInstitutionsExequaturPdf);
					if(dataorgRecords.medicalInstitutionsExequaturPdf!=null && dataorgRecords.medicalInstitutionsExequaturPdf!='') {
						var array = dataorgRecords.medicalInstitutionsExequaturPdf.split('/');
						$("#medicalInstitutionsExequatur_span").html("已上传文件：<a href='" + dataorgRecords.medicalInstitutionsExequaturPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#medicalInstitutionsExequaturSubject").val(dataorgRecords.medicalInstitutionsExequaturSubject);
					$("#medicalInstitutionsExequaturStartDate").val(dataorgRecords.medicalInstitutionsExequaturStartDate);
					$("#medicalInstitutionsExequaturEndDate").val(dataorgRecords.medicalInstitutionsExequaturEndDate);
					$("#medicalInstitutionsExequaturRegisterNum").val(dataorgRecords.medicalInstitutionsExequaturRegisterNum);
					
					$("#organizationScheme").val(dataorgRecords.organizationScheme);
					if(dataorgRecords.organizationScheme!=null && dataorgRecords.organizationScheme!='') {
						var array = dataorgRecords.organizationScheme.split('/');
						$("#organizationScheme_span").html("已上传文件：<a href='" + dataorgRecords.organizationScheme + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#researchManagementPrincipalPdf").val(dataorgRecords.researchManagementPrincipalPdf);
					if(dataorgRecords.researchManagementPrincipalPdf!=null && dataorgRecords.researchManagementPrincipalPdf!='') {
						var array = dataorgRecords.researchManagementPrincipalPdf.split('/');
						$("#researchManagementPrincipal_span").html("已上传文件：<a href='" + dataorgRecords.researchManagementPrincipalPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#researchManagementPrincipalResponsible").val(dataorgRecords.researchManagementPrincipalResponsible);
					
					$("#researchManagementAttorneyPdf").val(dataorgRecords.researchManagementAttorneyPdf);
					if(dataorgRecords.researchManagementAttorneyPdf!=null && dataorgRecords.researchManagementAttorneyPdf!='') {
						var array = dataorgRecords.researchManagementAttorneyPdf.split('/');
						$("#researchManagementAttorney_span").html("已上传文件：<a href='" + dataorgRecords.researchManagementAttorneyPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#researchManagementAttorneyQualifiedPerson").val(dataorgRecords.researchManagementAttorneyQualifiedPerson);
					
					$("#receiveTrainingPdf").val(dataorgRecords.receiveTrainingPdf);
					if(dataorgRecords.receiveTrainingPdf!=null && dataorgRecords.receiveTrainingPdf!='') {
						var array = dataorgRecords.receiveTrainingPdf.split('/');
						$("#receiveTrainingPdf_span").html("已上传文件：<a href='" + dataorgRecords.receiveTrainingPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					
					$("#workingSystemPdf").val(dataorgRecords.workingSystemPdf);
					if(dataorgRecords.workingSystemPdf!=null && dataorgRecords.workingSystemPdf!='') {
						var array = dataorgRecords.workingSystemPdf.split('/');
						$("#workingSystemPdf_span").html("已上传文件：<a href='" + dataorgRecords.workingSystemPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#preparationStandardPdf").val(dataorgRecords.preparationStandardPdf);
					if(dataorgRecords.preparationStandardPdf!=null && dataorgRecords.preparationStandardPdf!='') {
						var array = dataorgRecords.preparationStandardPdf.split('/');
						$("#preparationStandardPdf_span").html("已上传文件：<a href='" + dataorgRecords.preparationStandardPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#studyQualityManagementDocumentPdf").val(dataorgRecords.studyQualityManagementDocumentPdf);
					if(dataorgRecords.studyQualityManagementDocumentPdf!=null && dataorgRecords.studyQualityManagementDocumentPdf!='') {
						var array = dataorgRecords.studyQualityManagementDocumentPdf.split('/');
						$("#studyQualityManagementDocumentPdf_span").html("已上传文件：<a href='" + dataorgRecords.studyQualityManagementDocumentPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#auditSystemPdf").val(dataorgRecords.auditSystemPdf);
					if(dataorgRecords.auditSystemPdf!=null && dataorgRecords.auditSystemPdf!='') {
						var array = dataorgRecords.auditSystemPdf.split('/');
						$("#auditSystemPdf_span").html("已上传文件：<a href='" + dataorgRecords.auditSystemPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#evaluationCriterionPdf").val(dataorgRecords.evaluationCriterionPdf);
					if(dataorgRecords.evaluationCriterionPdf!=null && dataorgRecords.evaluationCriterionPdf!='') {
						var array = dataorgRecords.evaluationCriterionPdf.split('/');
						$("#evaluationCriterionPdf_span").html("已上传文件：<a href='" + dataorgRecords.evaluationCriterionPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#riskManagementMechanismPdf").val(dataorgRecords.riskManagementMechanismPdf);
					if(dataorgRecords.riskManagementMechanismPdf!=null && dataorgRecords.riskManagementMechanismPdf!='') {
						var array = dataorgRecords.riskManagementMechanismPdf.split('/');
						$("#riskManagementMechanismPdf_span").html("已上传文件：<a href='" + dataorgRecords.riskManagementMechanismPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
					$("#treatmentMeasurePdf").val(dataorgRecords.treatmentMeasurePdf);
					if(dataorgRecords.treatmentMeasurePdf!=null && dataorgRecords.treatmentMeasurePdf!='') {
						var array = dataorgRecords.treatmentMeasurePdf.split('/');
						$("#treatmentMeasurePdf_span").html("已上传文件：<a href='" + dataorgRecords.treatmentMeasurePdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					//2016-04-21 13:38:00 xiaoan start
					$("#researchManagementPrincipalDuty").val(dataorgRecords.researchManagementPrincipalDuty);
					$("#researchManagementPrincipalProfessional").val(dataorgRecords.researchManagementPrincipalProfessional);
					$("#researchManagementPrincipalSpecialty").val(dataorgRecords.researchManagementPrincipalSpecialty);
					$("#researchManagementAttorneyDuty").val(dataorgRecords.researchManagementAttorneyDuty);
					$("#researchManagementAttorneyProfessional").val(dataorgRecords.researchManagementAttorneyProfessional);
					$("#researchManagementAttorneySpecialty").val(dataorgRecords.researchManagementAttorneySpecialty);
					$("#researchManagementAttorneyEducation").val(dataorgRecords.researchManagementAttorneyEducation);
					$("#researchManagementAttorneyLimit").val(dataorgRecords.researchManagementAttorneyLimit);
					$("#academicDirectorName").val(dataorgRecords.academicDirectorName);
					$("#academicDirectorDuty").val(dataorgRecords.academicDirectorDuty);
					$("#academicDirectorProfessional").val(dataorgRecords.academicDirectorProfessional);
					$("#academicDirectorSpecialty").val(dataorgRecords.academicDirectorSpecialty);
					$("#academicDirectorUnit").val(dataorgRecords.academicDirectorUnit);
					$("#ethicalDirectorName").val(dataorgRecords.ethicalDirectorName);
					$("#ethicalDirectorDuty").val(dataorgRecords.ethicalDirectorDuty);
					$("#ethicalDirectorProfessional").val(dataorgRecords.ethicalDirectorProfessional);
					$("#ethicalDirectorSpecialty").val(dataorgRecords.ethicalDirectorSpecialty);
					$("#ethicalDirectorUnit").val(dataorgRecords.ethicalDirectorUnit);
					$("#preparationStandardDevice").val(dataorgRecords.preparationStandardDevice);
					$("#evaluationCriterionMonitoringDevice").val(dataorgRecords.evaluationCriterionMonitoringDevice);
					$("#treatmentMeasurePdf").val(dataorgRecords.treatmentMeasurePdf);
					
					$("#otherRelevantInformation").val(dataorgRecords.otherRelevantInformation);
					if(dataorgRecords.otherRelevantInformation!=null && dataorgRecords.otherRelevantInformation!='') {
						var array = dataorgRecords.otherRelevantInformation.split('/');
						$("#otherRelevantInformation_span").html("已上传文件：<a href='" + dataorgRecords.otherRelevantInformation + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#auditSystemEvidencePdf").val(dataorgRecords.auditSystemEvidencePdf);
					if(dataorgRecords.auditSystemEvidencePdf!=null && dataorgRecords.auditSystemEvidencePdf!='') {
						var array = dataorgRecords.auditSystemEvidencePdf.split('/');
						$("#auditSystemEvidencePdf_span").html("已上传文件：<a href='" + dataorgRecords.auditSystemEvidencePdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#auditSystemInstitutionPdf").val(dataorgRecords.auditSystemInstitutionPdf);
					if(dataorgRecords.auditSystemInstitutionPdf!=null && dataorgRecords.auditSystemInstitutionPdf!='') {
						var array = dataorgRecords.auditSystemInstitutionPdf.split('/');
						$("#auditSystemInstitutionPdf_span").html("已上传文件：<a href='" + dataorgRecords.auditSystemInstitutionPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#preparationStandardConditionPdf").val(dataorgRecords.preparationStandardConditionPdf);
					if(dataorgRecords.preparationStandardConditionPdf!=null && dataorgRecords.preparationStandardConditionPdf!='') {
						var array = dataorgRecords.preparationStandardConditionPdf.split('/');
						$("#preparationStandardConditionPdf_span").html("已上传文件：<a href='" + dataorgRecords.preparationStandardConditionPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#ethicalPdf").val(dataorgRecords.ethicalPdf);
					if(dataorgRecords.ethicalPdf!=null && dataorgRecords.ethicalPdf!='') {
						var array = dataorgRecords.ethicalPdf.split('/');
						$("#ethicalPdf_span").html("已上传文件：<a href='" + dataorgRecords.ethicalPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#academicPdf").val(dataorgRecords.academicPdf);
					if(dataorgRecords.academicPdf!=null && dataorgRecords.academicPdf!='') {
						var array = dataorgRecords.academicPdf.split('/');
						$("#academicPdf_span").html("已上传文件：<a href='" + dataorgRecords.academicPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#ethicalTrainingPdf").val(dataorgRecords.ethicalTrainingPdf);
					if(dataorgRecords.ethicalTrainingPdf!=null && dataorgRecords.ethicalTrainingPdf!='') {
						var array = dataorgRecords.ethicalTrainingPdf.split('/');
						$("#ethicalTrainingPdf_span").html("已上传文件：<a href='" + dataorgRecords.ethicalTrainingPdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#researchManagementAttorneyExperiencePdf").val(dataorgRecords.researchManagementAttorneyExperiencePdf);
					if(dataorgRecords.researchManagementAttorneyExperiencePdf!=null && dataorgRecords.researchManagementAttorneyExperiencePdf!='') {
						var array = dataorgRecords.researchManagementAttorneyExperiencePdf.split('/');
						$("#researchManagementAttorneyExperiencePdf_span").html("已上传文件：<a href='" + dataorgRecords.researchManagementAttorneyExperiencePdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#researchManagementPrincipalCertificatePdf").val(dataorgRecords.researchManagementPrincipalCertificatePdf);
					if(dataorgRecords.researchManagementPrincipalCertificatePdf!=null && dataorgRecords.researchManagementPrincipalCertificatePdf!='') {
						var array = dataorgRecords.researchManagementPrincipalCertificatePdf.split('/');
						$("#researchManagementPrincipalCertificatePdf_span").html("已上传文件：<a href='" + dataorgRecords.researchManagementPrincipalCertificatePdf + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					//2016-04-21 13:38:00 xiaoan end
					$("#studyQualityManagementDocumentRoutine").val(dataorgRecords.studyQualityManagementDocumentRoutine);
					if(dataorgRecords.studyQualityManagementDocumentRoutine!=null && dataorgRecords.studyQualityManagementDocumentRoutine!='') {
						var array = dataorgRecords.studyQualityManagementDocumentRoutine.split('/');
						$("#studyQualityManagementDocumentRoutine_span").html("已上传文件：<a href='" + dataorgRecords.studyQualityManagementDocumentRoutine + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#studyQualityManagementDocumentSheet").val(dataorgRecords.studyQualityManagementDocumentSheet);
					if(dataorgRecords.studyQualityManagementDocumentSheet!=null && dataorgRecords.studyQualityManagementDocumentSheet!='') {
						var array = dataorgRecords.studyQualityManagementDocumentSheet.split('/');
						$("#studyQualityManagementDocumentSheet_span").html("已上传文件：<a href='" + dataorgRecords.studyQualityManagementDocumentSheet + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					$("#studyQualityManagementDocumentElse").val(dataorgRecords.studyQualityManagementDocumentElse);
					if(dataorgRecords.studyQualityManagementDocumentElse!=null && dataorgRecords.studyQualityManagementDocumentElse!='') {
						var array = dataorgRecords.studyQualityManagementDocumentElse.split('/');
						$("#studyQualityManagementDocumentElse_span").html("已上传文件：<a href='" + dataorgRecords.studyQualityManagementDocumentElse + "' target='_blank'>" + array[array.length-1] + "</a>");
					}
					
				}
				// 
			}
		},
		error:function(){
			//nexts(tag);
		}
	});
}

// 查询证书列表
function getCertificateList(id) {
	var status = $("#status").val();
	$.ajax({
		url : '/admin/org!getCertificateList.action',
		type : 'post',
		dataType: 'json',
		data:{
			"id": id
		},
		success : function(data) {
			 var resultContent = '<tr>'
						      	+'<th style="text-align: left; width: 20%">证书编号</th>'
						      	+'<th style="text-align: left;">认定专业</th>'
						      	+'<th style="text-align: left;">有效期</th>'
						      	+'<th style="text-align: left;">PDF文件</th>'
						      	+'<th style="text-align: left;">操作</th>'
						      +'</tr>';
		     $(data).each(function(i) {
		     	 var statusStr = '';
		     	 if(status=='0') {
		     	 	statusStr = '<a href="javascript:void(0)" onclick="editCertificate(' + data[i].id + ')">更新</a>&nbsp; '
				        +	'<a href="javascript:void(0)" onclick="deleteCertificate(' + data[i].id + ')">删除</a>';
		     	 }else {
		     	 	statusStr = '无';
		     	 }
		    	 resultContent+='<tr>'
				        +'<td>' + data[i].certNumber + '</td>'
				        +'<td>' + data[i].affirmationProfession + '</td>'
				        +'<td>' + data[i].startDate + ' 至 ' + data[i].startDate + '</td>'
				        +'<td><a href="' + data[i].pdf + '" target="_blank" >查看/下载</a></td>'
				        +'<td>'
				        + statusStr	
				        +'</td>'
				      +'</tr>';
		     });
		     if(data=='') {
		     	 resultContent+='<tr><td colspan="5" style="text-align:center; height:40px;">数据为空！</td></tr>';
		     }
		     $("#certificate_data").html(resultContent);
		},
		error : function(X) {
			// 失败
		}
    });
}

// 查询证书列表
function getAssumeProjectList() {
	var status = $("#status").val();
	$.ajax({
		url : '/admin/org!getAssumeProjectList.action',
		type : 'post',
		data:{
			"id": id
		},
		dataType: 'json',
		success : function(data) {
			 var resultContent = '<tr>'
						      	+'<th style="text-align: left;">项目类型</th>'
						      	+'<th style="text-align: left;">项目名称</th>'
						      	+'<th style="text-align: left;">项目编号</th>'
						      	+'<th style="text-align: left;">负责人</th>'
						      	+'<th style="text-align: left;">经费（万）</th>'
						      	+'<th style="text-align: left;">单位类型</th>'
						      	+'<th style="text-align: left;">参与单位名单</th>'
						      	+'<th style="text-align: left;">操作</th>'
						      +'</tr>';
		     $(data).each(function(i) {
		     	 var statusStr='';
		     	 if(status=='0') {
		     	 	statusStr = '<a href="javascript:void(0)" onclick="editAssumeProject(' + data[i].id + ')">更新</a>&nbsp; '
				        +	'<a href="javascript:void(0)" onclick="deleteAssumeProject(' + data[i].id + ')">删除</a>';
		     	 }else {
		     	 	statusStr = '无';
		     	 }
		    	 resultContent+='<tr>'
				        +'<td>' + data[i].projectType + '</td>'
				        +'<td>' + data[i].projectName + '</td>'
				        +'<td>' + data[i].projectNumber + '</td>'
				        +'<td>' + data[i].principal + '</td>'
				        +'<td>' + data[i].expenditure + '</td>'
				        +'<td>' + data[i].leaderUnit + '</td>'
				        +'<td>' + data[i].participationUnit + '</td>'
				        +'<td>'
				        + statusStr	
				        +'</td>'
				      +'</tr>';
		     });
		     if(data=='') {
		     	 resultContent+='<tr><td colspan="8" style="text-align:center; height:40px;">数据为空！</td></tr>';
		     }
		     $("#assume_project_data").html(resultContent);
		},
		error : function(X) {
			// 失败
		}
    });
}

function getInternalAuditList() {
	var status = $("#status").val();
	$.ajax({
		url : '/admin/org!getInternalAuditList.action',
		type : 'post',
		dataType: 'json',
		data:{
			"id": id
		},
		success : function(data) {
			 var resultContent = '<tr>'
						      	+'<th style="text-align: left;">内审人员姓名</th>'
						      	+'<th style="text-align: left;">专业</th>'
						      	+'<th style="text-align: left;">工作部门</th>'
						      	+'<th style="text-align: left;">操作</th>'
						      +'</tr>';
		     $(data).each(function(i) {
		     	 var statusStr = '';
		     	 if(status=='0') {
		     	 	statusStr = '<a href="javascript:void(0)" onclick="editInternalAudit(' + data[i].id + ')">更新</a>&nbsp; '
				        +	'<a href="javascript:void(0)" onclick="deleteInternalAudit(' + data[i].id + ')">删除</a>';
		     	 }else {
		     	 	statusStr = '无';
		     	 }
		    	 resultContent+='<tr>'
				        +'<td>' + data[i].memberName + '</td>'
				        +'<td>' + data[i].specialty + '</td>'
				        +'<td>' + data[i].department + '</td>'
				        +'<td>'
				        + statusStr	
				        +'</td>'
				      +'</tr>';
		     });
		     if(data=='') {
		     	 resultContent+='<tr><td colspan="4" style="text-align:center; height:40px;">数据为空！</td></tr>';
		     }
		     $("#internal_audit_data").html(resultContent);
		},
		error : function(X) {
			// 失败
		}
    });
}

function getCommitteeList(memberType,committeeType) {
	var status = $("#status").val();
	$.ajax({
		url : '/admin/org!getCommitteeList.action',
		type : 'post',
		dataType: 'json',
		data:{
			"id": id,
			"memberType": memberType,
			"committeeType": committeeType
		},
		success : function(data) {
			 var weiyuanStr = '';
			 if(memberType=='1' && committeeType=='1') {
			 	weiyuanStr = '副主任委员姓名';
			 }else if(memberType=='2' && committeeType=='1') {
			 	weiyuanStr = '委员姓名';
			 }else if(memberType=='1' && committeeType=='2') {
			 	weiyuanStr = '副主任委员姓名';
			 }else if(memberType=='2' && committeeType=='2') {
			 	weiyuanStr = '委员姓名';
			 }
			 var resultContent = '<tr>'
						      	+'<th style="text-align: left;" width="15%">' + weiyuanStr + '</th>'
						      	+'<th style="text-align: left;" width="15%">职务</th>'
						      	+'<th style="text-align: left;" width="15%">职称</th>'
						      	+'<th style="text-align: left;" width="15%">专业</th>'
						      	+'<th style="text-align: left;">单位</th>'
						      	+'<th style="text-align: left;" width="15%">操作</th>'
						      +'</tr>';
		     $(data).each(function(i) {
		     	 var statusStr = '';
		     	 if(status=='0') {
		     	 	statusStr = '<a href="javascript:void(0)" onclick="editCommittee(' + data[i].id + ',' + memberType +',' + committeeType + ')">更新</a>&nbsp; '
				        +	'<a href="javascript:void(0)" onclick="deleteCommittee(' + data[i].id + ',' + memberType +',' + committeeType + ')">删除</a>';
		     	 }else {
		     	 	statusStr = '无'; 
		     	 }
		    	 resultContent+='<tr>'
				        +'<td>' + data[i].memberName + '</td>'
				        +'<td>' + data[i].duty + '</td>'
				        +'<td>' + data[i].professional + '</td>'
				        +'<td>' + data[i].specialty + '</td>'
				        +'<td>' + data[i].unit + '</td>'
				        +'<td>'
				        + statusStr
				        +'</td>'
				      +'</tr>';
		     });
		     if(data=='') {
		     	 resultContent+='<tr><td colspan="4" style="text-align:center; height:40px;">数据为空！</td></tr>';
		     }
		     $("#committee_data_" + memberType + "_" + committeeType).html(resultContent);
		},
		error : function(X) {
			// 失败
		}
    });
}

